<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>login</title>
</head>
<body>
<h1>用户登录</h1>
<form th:action="@{/login}" method="post">
    用户名：<input type="text" name="username"><br/>
    密&nbsp;&nbsp;&nbsp;码：<input type="password" name="password"><br/>
    验证码：<input type="text" name="code"><img src="/validCode" alt="" width="100" height="40"/><br/>
    记住我：<input type="checkbox" name="remember-me"/><br/>
    <input type="submit" value="登录"><br/>
    <span th:text="${msg}" style="color:red"></span><br/>
</form>
</body>
</html>